
<?php
header("refresh:1;url=index.php");
	include_once '../config.inc.php';

	//清空session数组
	$_SESSION = array();
	
	//删除cookeie中的session_id
	if(isset($_COOKIE[session_name()])){
		setCookie(session_name(),'',time()-3600,'/');
	}

	//销毁所有session资源
	session_destroy();

?>
